package com.shujia.wyh.day27.factoryfunction;

public class DogFactory implements Factory{
    @Override
    public Animal createAnimal() {
        return new Dog();
    }
}
